// This code is copy from https://github.com/LS-KR/LunarMonthCalender
#ifndef __Lunar_H__
#define __Lunar_H__

typedef struct
{
    int Month;
    int Day;
    bool IsLeap;
} LunarDate;

class Lunar
{
public:
    void GetLunarString(struct tm *t, char *str);

private:
    LunarDate GetLunarDate(int year, int month, int day);
    int GetOriginalSource(int year, int month, int day);
    bool IsLeap(int year, int month, int day);
    unsigned int LunarCalendarDay;
    int LunarCalendar(int year, int month, int day);
};

#endif